<template>
  <div class="index-wrapper">
    <component :is="currentRole"/>
  </div>
</template>

<script>
// import { mapGetters } from 'vuex'
import adminDashboard from "./admin";
import user from "./user";

export default {
  name: "index",
  components: {
    adminDashboard,
    user
  },
  data() {
    return {
      // currentRole: 'adminDashboard'
      currentRole: "user"
    };
  },
  computed: {
    // ...mapGetters([
    //   'roles'
    // ])
  },
  created() {
    // if (!this.roles.includes('admin')) {
    //   this.currentRole = 'editorDashboard'
    // }
  }
};
</script>

<style scoped lang="scss">
.index-wrapper {
}
</style>
